package com.zxc.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxc.common.utils.PageUtils;
import com.zxc.gulimall.member.entity.MemberEntity;
import com.zxc.gulimall.member.exception.PhoneExistsException;
import com.zxc.gulimall.member.exception.UsernameExistException;
import com.zxc.gulimall.member.vo.MemberLoginVo;
import com.zxc.gulimall.member.vo.MemberRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author zxc
 * @email 2898743173@qq.com
 * @date 2021-10-27 11:26:51
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistsException;

    void checkUserNameUnique(String username) throws UsernameExistException;

    MemberEntity login(MemberLoginVo vo);
}

